﻿using AntdUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Angle.Krill
{
    public class KrillTable : Table
    {
        public Action CtrlCKey;

        protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, Keys keyData)
        {
            if (keyData == (Keys.Control | Keys.C))
            {
                base.ProcessCmdKey(ref msg, keyData);

                CtrlCKey?.Invoke();

                return true;
            }

            return base.ProcessCmdKey(ref msg, keyData);
        }
    }
}
